cpupool: Fix __cpupool_find_by_id(), clean up accessor functions.
authorKeir Fraser <keir@xen.org>
Wed, 9 Feb 2011 08:53:43 +0000 (08:53 +0000)
committerKeir Fraser <keir@xen.org>
Wed, 9 Feb 2011 08:53:43 +0000 (08:53 +0000)
commit7fc001c2c2707209d3ff0476133c561b16192f4e
tree9f9eabad264582b6da9c79d78ab1b58bd4b16e1d
parent657c5ca69673e5100ef6143c1a5294e506ff35c1
cpupool: Fix __cpupool_find_by_id(), clean up accessor functions.

Firstly, __cpupool_find_by_id() would dereference NULL, at the end of
an exact search if the search loop exited with *q==NULL. Fix this.

Secondly, provide suitable accessor functions so that no caller needs
to use the __-prefixed versions which take a boolean flag.

Signed-off-by: Keir Fraser <keir@xen.org>
xen/common/cpupool.c